package com.yunhe.mybatis.service;

import com.yunhe.mybatis.dto.Pageable;
import com.yunhe.mybatis.entity.Deparment;
import com.yunhe.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeparmentService {
    void save(Deparment deparment);

    void update(Deparment deparment);

    void remove(Integer id);

    void removebath(Integer[] ids);//批量删除

    Deparment find(Integer id);

    Deparment findByName(String name);

    List<Deparment> findAll();//查询所有

    Pageable findForPage(int page, int size, String name);

}
